package vue.panels;

import vue.Ui;
import vue.components.*;

/**
 * <p>Title: vue.ListTablesEtChatPanel </p>
 *
 * <p>Description: Ce panneau contient la liste des tables et le chat de la salle </p>
 *
 * <p>Copyright: (c) 2008 FSSIM</p>
 *
 * <p>Company: FSSImock</p>
 *
 * @author Antoine Farnault
 * @author Augustin Couette
 * @version 1.0
 */
public class ListTablesEtChatPanel extends TPPanel {
    
	private static final long serialVersionUID = 1L;
	
	// Variables declaration
    public ChatPanel chatPanel;
    public ListTablesPanel tablesPanel;
    // End of variables declaration
    
    /** Creates new form TablePanel */
    public ListTablesEtChatPanel(Ui ui) {
    	chatPanel = new ChatPanel(ui,"salle"); // il s'agit du chat de la salle
    	tablesPanel  = new ListTablesPanel(ui);
        initComponents();
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     */
    private void initComponents() {
        setName("listTablesEtChatPanel");
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(tablesPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(chatPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(tablesPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(chatPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }
}
